//@author A0080442N
#include "Logger.h"

bool Logger::_instanceFlag = false;
Logger* Logger::_single = NULL;

Logger* Logger::getInstance() {
	if(!_instanceFlag) {
		_single = new Logger();
		_instanceFlag = true;
		return _single;
	} else {
		return _single;
	}
}

void Logger::loggingEvents(string eventToLog) {
	_logFile << eventToLog << endl;
}

void Logger::clearLogFile() {
	_logFile.open(LOG_SCHEDULER_FILE_NAME, ios::trunc);
}